package com.susallwave.srcb.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统操作日志
 * </p>
 *
 * @author MyBatisPlusGenerator
 * @since 2025-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_operation_log")
@ApiModel(value="日志对象", description="系统操作日志")
public class OperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "员工号")
    private String userAcct;

    @ApiModelProperty(value = "请求IP")
    private String ipAddress;

    @ApiModelProperty(value = "请求URL")
    private String requestUrl;

    @ApiModelProperty(value = "请求方法")
    private String requestMethod;

    @ApiModelProperty(value = "调用的类方法")
    private String classMethod;

    @ApiModelProperty(value = "请求参数JSON")
    private String requestParams;

    @ApiModelProperty(value = "响应数据JSON")
    private String responseData;

    @ApiModelProperty(value = "操作状态（1成功，0失败）")
    private Integer status;

    @ApiModelProperty(value = "异常信息")
    private String errorMsg;

    @ApiModelProperty(value = "耗时（毫秒）")
    private Long timeCost;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
